package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.mapper.voipmapper.CommoditiesMapper;
import com.base.po.sqlparam.CommoditiesExamplePage;
import com.base.po.voip.Commodities;
import com.base.po.voip.CommoditiesExample;
import com.base.service.CommoditiesService;
import org.springframework.stereotype.Service;

@Service("commoditiesService")
public class CommoditiesServiceImpl implements CommoditiesService {
	@Autowired
	private CommoditiesMapper commoditiesMapper;

	@Override
	public int countByExample(CommoditiesExample example) {
		return commoditiesMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CommoditiesExample example) {
		return commoditiesMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return commoditiesMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Commodities record) {
		return commoditiesMapper.insert(record);
	}

	@Override
	public int insertSelective(Commodities record) {
		return commoditiesMapper.insertSelective(record);
	}

	@Override
	public List<Commodities> selectByExample(CommoditiesExample example) {
		return commoditiesMapper.selectByExample(example);
	}

	@Override
	public List<Commodities> selectByExamplePage(CommoditiesExamplePage example) {
		return commoditiesMapper.selectByExamplePage(example);
	}

	@Override
	public Commodities selectByPrimaryKey(String id) {
		return commoditiesMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Commodities record, CommoditiesExample example) {
		return commoditiesMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Commodities record, CommoditiesExample example) {
		return commoditiesMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Commodities record) {
		return commoditiesMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Commodities record) {
		return commoditiesMapper.updateByPrimaryKey(record);
	}

}
